package org.cytoscape.myapp.cytoscape_app_v1.internal.metrics.graph;

public class MyNode {

	public final static Integer USER=0;
	public final static Integer ATTRIBUTE=1;
	private String id;
	private int type;
	private double w=1.0;

	public MyNode(String id, Integer type) {
		this.setId(id);
		this.setType(type);
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public boolean equals(MyNode node){
		if(this.getId().equals(node.getId())&&(this.getType().equals(node.getType())))
			return true;
		return false;
	}

	public double getW() {
		return w;
	}

	public void setW(double w) {
		this.w = w;
	}

}
